 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.constraints.NotBlank;
 import java.io.Serializable;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class OptionModel implements Serializable {

     @NotBlank(message="optionCode字段不能为空!")
	 private String optionCode;

     @NotBlank(message="optionContent字段不能为空!")
	 private String optionContent;

     public String getOptionCode() {
         return optionCode;
     }

     public void setOptionCode(String optionCode) {
         this.optionCode = optionCode;
     }

     public String getOptionContent() {
         return optionContent;
     }

     public void setOptionContent(String optionContent) {
         this.optionContent = optionContent;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;
         }

         if (o == null || getClass() != o.getClass()) {
             return false;
         }

         OptionModel that = (OptionModel) o;

         return new EqualsBuilder()
                 .append(optionCode, that.optionCode)
                 .append(optionContent, that.optionContent)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(optionCode)
                 .append(optionContent)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "OptionModel{" +
                 "optionCode='" + optionCode + '\'' +
                 ", optionContent='" + optionContent + '\'' +
                 '}';
     }
 }
